package com.xl98.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author ls
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Groups对象", description="")
public class Groups implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "群名称")
    private String name;

    @ApiModelProperty(value = "群主id（指向用户表）")
    private String adminId;

    @ApiModelProperty(value = "群图标")
    private String icon;

    @ApiModelProperty(value = "群公告")
    private String notice;

    @ApiModelProperty(value = "群成员数")
    private Integer usersSum;

    @ApiModelProperty(value = "群成员上限（设置默认值）")
    private Integer usersMaxNumber;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
